/**
 * 
 */

/*link href*/

function linkTo(link) {	
	 $('.container-fluid').animate({'opacity':0},{
	     easing: 'easeInQuint',
	     duration:400});
	 $('#homeCanvas').animate({'opacity':0},{
	     easing: 'easeInQuint',
	     duration:400});
	$('.navbar-inverse').animate({'opacity':0},{duration:400,complete:function(){
		 afterCss(link);
	}});	
}
function goToPage(link){
	 $('.container-fluid').animate({'opacity':0},{
	     easing: 'easeInQuint',
	     duration:400,complete:function(){
			 afterCss(link);
	 	}});	
}
function afterCss(link){
	base_url = 'http://192.168.2.2:8888/palaisbanquet/root/';
	document.location.href = base_url + link;
}
$(function(){
	 $('.container-fluid').css('opacity',0);
	 $('.navbar-inverse').css('opacity',0);
	 $('#homeCanvas').css('opacity',0);
	 //$('#loader').css('opacity',0);
});
jQuery(window).load(function(){
	
	 $("#loader").delay(400).fadeOut('slow',function(){		
		 $('#homeCanvas').animate({'opacity':1},{
		     easing: 'easeInQuint',
		     duration:400});
		 $('.container-fluid').animate({'opacity':1},{
		     easing: 'easeInQuint',
		     duration:400});
		$('.navbar-inverse').animate({'opacity':1});
	
 });    
	
});

